import mypipe_lib
import time
import os
import sys

if __name__ == '__main__':
    index = 0
    while True:
        #mypipe_lib.pipe_write(str(time.time()))
        print ("c0:" + str(index) + ":" + str(time.time()))
        msg = "c0:" + str(index) + ":" + str(time.time())
        mypipe_lib.pipe_write(msg=msg)
        time.sleep(1)
        index += 1